<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>车检页面预览</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #ffffff;
            color: #333;
        }

        .container {
            background-color: #ffffff;
            min-height: 100vh;
            padding: 20px;
        }

        /* 页面标题 */
        .page-header {
            background-color: #ffffff;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
            text-align: center;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        }

        .page-title {
            font-size: 20px;
            font-weight: bold;
            color: #333333;
        }

        /* 主要内容区域 */
        .main-content {
            background-color: #ffffff;
            border-radius: 12px;
            padding: 24px;
            min-height: 600px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        }

        /* 视频区域 */
        .video-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border-radius: 16px;
            padding: 40px 20px;
            margin-bottom: 24px;
            text-align: center;
            min-height: 180px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
            border: 1px solid #f0f0f0;
            cursor: pointer;
        }

        .video-section:hover {
            background: linear-gradient(135deg, #f0f0f0 0%, #f8f9fa 100%);
            transform: translateY(2px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .video-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }

        .video-icon {
            font-size: 52px;
            color: #666666;
        }

        .video-text {
            font-size: 18px;
            font-weight: 600;
            color: #333333;
        }

        .video-desc {
            font-size: 14px;
            color: #888888;
        }

        /* 车辆信息区域 */
        .vehicle-info-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
            border: 1px solid #f0f0f0;
            cursor: pointer;
        }

        .vehicle-info-section:hover {
            background: linear-gradient(135deg, #f0f0f0 0%, #f8f9fa 100%);
            transform: translateY(2px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .info-text {
            font-size: 16px;
            color: #555555;
            line-height: 1.6;
            font-weight: 500;
        }

        /* 历史检车记录区域 */
        .history-section {
            background-color: #ffffff;
            border-radius: 16px;
            padding: 24px;
            min-height: 300px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
            border: 1px solid #f0f0f0;
        }

        .history-header {
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 2px solid #f0f0f0;
        }

        .history-title {
            font-size: 18px;
            font-weight: 600;
            color: #333333;
        }

        .history-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .history-item {
            background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
            border: 1px solid #f0f0f0;
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .history-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #666666 0%, #888888 100%);
        }

        .history-item:hover {
            border-color: #d0d0d0;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }

        .record-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-left: 12px;
        }

        .plate-number {
            font-size: 16px;
            font-weight: bold;
            color: #2c3e50;
            letter-spacing: 1px;
        }

        .status {
            font-size: 12px;
            padding: 8px 16px;
            border-radius: 20px;
            color: #fff;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .status-pass {
            background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
        }

        .status-fail {
            background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
        }

        .status-processing {
            background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
        }

        .record-time {
            margin-bottom: 16px;
            padding-left: 12px;
        }

        .time-label {
            font-size: 12px;
            color: #666666;
            font-weight: 600;
            display: block;
            margin-bottom: 8px;
        }

        .time-range {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .time-start,
        .time-end {
            font-size: 12px;
            color: #555555;
            background: rgba(0, 0, 0, 0.05);
            padding: 8px 12px;
            border-radius: 8px;
            border-left: 3px solid #888888;
        }

        .time-separator {
            font-size: 10px;
            color: #999;
            text-align: center;
            padding: 2px 0;
        }

        .record-note {
            margin-top: 16px;
            padding: 16px;
            background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
            border-radius: 12px;
            border-left: 4px solid #888888;
            margin-left: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .note-text {
            font-size: 13px;
            color: #555555;
            line-height: 1.5;
        }

        .empty-state {
            text-align: center;
            padding: 80px 40px;
            background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
            border-radius: 16px;
            border: 2px dashed #d9d9d9;
        }

        .empty-text {
            font-size: 14px;
            color: #bfbfbf;
            font-weight: 500;
        }

        /* 自定义弹窗样式 */
        .custom-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .modal-content {
            background-color: #ffffff;
            border-radius: 16px;
            width: 85%;
            max-width: 450px;
            max-height: 80%;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid #f0f0f0;
            background-color: #fafafa;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #333333;
        }

        .modal-close {
            font-size: 24px;
            color: #999999;
            cursor: pointer;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .modal-close:hover {
            background-color: #f0f0f0;
            color: #666666;
        }

        .modal-body {
            padding: 24px;
            max-height: 400px;
            overflow-y: auto;
        }

        .detail-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .detail-item:last-child {
            margin-bottom: 0;
        }

        .detail-icon {
            font-size: 16px;
            margin-right: 8px;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .detail-label {
            font-size: 14px;
            color: #666666;
            font-weight: 500;
            margin-right: 8px;
            flex-shrink: 0;
            min-width: 80px;
        }

        .detail-value {
            font-size: 14px;
            color: #333333;
            flex: 1;
            word-break: break-all;
        }

        .detail-time {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
        }

        .time-separator {
            font-size: 12px;
            color: #999999;
            margin: 2px 0;
        }

        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid #f0f0f0;
            background-color: #fafafa;
            display: flex;
            justify-content: center;
        }

        .modal-btn {
            background: linear-gradient(135deg, #666666 0%, #888888 100%);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            padding: 12px 32px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .modal-btn:hover {
            background: linear-gradient(135deg, #555555 0%, #777777 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .modal-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 页面标题 -->
        <div class="page-header">
            <div class="page-title">车检</div>
        </div>

        <!-- 主要内容区域 -->
        <div class="main-content">
            <!-- 当前车检的实时视频区域 -->
            <div class="video-section" onclick="openVideoView()">
                <div class="video-placeholder">
                    <div class="video-icon">📹</div>
                    <div class="video-text">当前车检的实时视频</div>
                    <div class="video-desc">点击查看检测过程</div>
                </div>
            </div>

            <!-- 车辆信息区域 -->
            <div class="vehicle-info-section" onclick="viewVehicleInfo()">
                <div class="info-text">当前车辆的流程记录和当前车辆的基本信息</div>
            </div>

            <!-- 历史检车记录区域 -->
            <div class="history-section">
                <div class="history-header">
                    <div class="history-title">历史检车记录</div>
                </div>
                <div class="history-list">
                    <div class="history-item" onclick="showDetailModal()">
                        <div class="record-header">
                            <div class="plate-number">豫A66666</div>
                            <div class="status status-processing">检测中</div>
                        </div>
                        <div class="record-time">
                            <div class="time-label">检测时间：</div>
                            <div class="time-range">
                                <div class="time-start">2025年08月10日 19:03</div>
                                <div class="time-separator">至</div>
                                <div class="time-end">2025年08月10日 20:03</div>
                            </div>
                        </div>
                        <div class="record-note">
                            <div class="note-text">正常</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 自定义详情弹窗 -->
        <div class="custom-modal" id="customModal" style="display: none;" onclick="closeCustomModal()">
            <div class="modal-content" onclick="event.stopPropagation()">
                <div class="modal-header">
                    <div class="modal-title">检车详情</div>
                    <div class="modal-close" onclick="closeCustomModal()">×</div>
                </div>
                <div class="modal-body">
                    <div class="detail-item">
                        <div class="detail-icon">🚗</div>
                        <div class="detail-label">车牌号码：</div>
                        <div class="detail-value">豫A66666</div>
                    </div>
                    <div class="detail-item">
                        <div class="detail-icon">⏰</div>
                        <div class="detail-label">检测时间：</div>
                        <div class="detail-time">
                            <div class="detail-value">2025年08月10日 19:03</div>
                            <div class="time-separator">至</div>
                            <div class="detail-value">2025年08月10日 20:03</div>
                        </div>
                    </div>
                    <div class="detail-item">
                        <div class="detail-icon">📋</div>
                        <div class="detail-label">检测状态：</div>
                        <div class="detail-value status-processing">检测中</div>
                    </div>
                    <div class="detail-item">
                        <div class="detail-icon">📝</div>
                        <div class="detail-label">检测结果：</div>
                        <div class="detail-value">正常</div>
                    </div>
                    <div class="detail-item">
                        <div class="detail-icon">🔍</div>
                        <div class="detail-label">检测内容：</div>
                        <div class="detail-value">车辆外观检查、发动机检测、制动系统检测等项目均正常</div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button class="modal-btn" onclick="closeCustomModal()">确定</button>
                </div>
            </div>
        </div>
    </div>

    <script>
        function openVideoView() {
            alert('打开实时视频');
        }

        function viewVehicleInfo() {
            alert('查看车辆信息');
        }

        function showDetailModal() {
            document.getElementById('customModal').style.display = 'flex';
        }

        function closeCustomModal() {
            document.getElementById('customModal').style.display = 'none';
        }
    </script>
</body>
</html>
